package com.rede.didiok.user.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rede.didiok.user.entity.UserWatchEntity;

/**
 * 用户关注表
 * 
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-08-07 18:21:17
 */
@Mapper
public interface UserWatchDao extends BaseMapper<UserWatchEntity> {

    /**
     * 根据用户id 计算 关注数量
     *
     * @param users
     * @return
     */
    List<Map<String, String>> getUserWatchCountByUserId(@Param("userUids") List<String> userUids);

}
